package com.zz.io;


import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

public class CommonsIOTest {
    public static void main(String args[]) throws IOException {
        //复制文件
        FileUtils.copyFile(new File("opp-app1\\src\\data\\test4.txt"), new File("opp-app1\\src\\data\\test5.txt"));
        FileUtils.copyDirectory(new File("opp-app1\\src\\com\\zz\\stream"), new File("opp-app1\\src\\com\\zz\\stream2"));
        FileUtils.deleteDirectory(new File("opp-app1\\src\\com\\zz\\stream2"));
    }
}
